|
|
|
To enable the click to dial functionality, use the following syntax:
You can embed this code into any valid WML tag that implements href or a hyperlink by associating these tags with a <go> tag. Examples of tags you can associate with the <go> tag are the <a> tag, <anchor>, <do>, <option>, or <onevent> tags.
<?xml version=”1.0”?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”
“http://www.wapforum.org/DTD/wml13.dtd”>
<wml>
<card id=”callid1” title=”Click-to-Dial Demo”>
<p>
Click on the link to originate a call
<a href=”wtai://wp/mc;5551212”>Call 5551212</a>
</p>
</card>
</wml>
The generated code is rendered as the following diagram:
The code shows a hyperlink as Call 5551212 on the Web screen of an Avaya 9620 IP Telephone. A phone icon precedes this hyperlink, indicating the hyperlink is a “click-to-dial” number. When a user selects this link, the phone dials the string “5551212” or any phone number that follows a semicolon in the WTAI code.
NOTE: A phone icon is generated only when an <a> tag or <anchor> tag is used.
<?xml version=”1.0”?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”
“http://www.wapforum.org/DTD/wml13.dtd”>
<wml>
<card id=”callid1” title=”Using anchor tag”>
<p>
<p align=”center”>***Customer Service***</p>
</p>
Your order will ship in 3-5 days.
If you have any questions, then
<anchor>Call us
<go href=”wtai://wp/mc;5551212”/>
</anchor>
</p>
</card>
</wml>
The generated code is rendered as the following diagram:
The code shows a hyperlink as Call Us on the Web page. When a user selects this link, the phone dials the string “5551212” or any number that follows a semicolon in the WTAI code.
<?xml version=”1.0”?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”
“http://www.wapforum.org/DTD/wml13.dtd”>
<wml>
<card id=”callid3” title=”Incorrect Login”>
<onevent type=”ontimer”>
<go href=”wtai://wp/mc;+ 1888 555 1212"/>
</onevent>
<timer value="50"/>
<p>
You have exceeded number of tries.
A call will be automatically launched in 5 seconds.
</p>
</card>
</wml>
The generated code is rendered as the following diagram:
The code automatically dials the number “1 888 555 1212" after 5 seconds, once the Web page loads.
NOTE: When using international numbers with click to dial functionality, you must include a '+' before the country code. You must include a space following the country code, but before the national number. The enhanced local dialing rules will then be handled correctly. See the Avaya one-X Deskphone Edition for 9600 Series IP Telephone Administrator Guide for configuration information.
<?xml version=”1.0”?>
<!DOCTYPE wml PUBLIC “-//WAPFORUM//DTD WML 1.3//EN”
“http://www.wapforum.org/DTD/wml13.dtd”>
<wml>
<card id=”callid4” title=”Click-to-Dial Demo”>
<p>
Contact us for more information.
</p>
<do type=”accept” label=”Call Us” name=”dotag1”>
<go href=”wtai://wp/mc;+1 8005552525”/>
</do>
</card>
</wml>
The generated code is rendered as the following diagram:
|
|
|